/*
 * @Author: Wangtao
 * @Date: 2020-10-29 14:26:48
 * @LastEditors: zhanwang
 * @LastEditTime: 2021-11-18 18:39:29
 */

import { NodeDataObj } from '../types'

const defaultData: {[propName: string]: NodeDataObj} = {
  'ivr-node-start': {
    name: '开始节点'
  },
  'ivr-node-date': {
    name: '时间条件',
    default: ''
  },
  'ivr-node-transfer': {
    name: '转人工',
    callType: '1',
    callValue: '',
    transferVoice: ''
  },
  'ivr-node-menu': {
    name: '按键菜单',
    multikey: 'single',
    replayTimes: 2,
    replayInterval: 3,
    playType: 'voiceLibrary',
    voice: ''
  },
  'ivr-node-play': {
    name: '播放语音',
    replayTimes: 2,
    replayInterval: 3,
    playType: 'voiceLibrary',
    engine: 'ali',
    text: '',
    speechRate: 50,
    pitchRate: 50,
    volume: 50,
    voice: 'siyue',
    previewRecordUrl: ''
  },
  'ivr-node-collect': {
    name: '采集收号',
    replayTimes: 2,
    replayInterval: 3,
    playType: 'voiceLibrary',
    engine: 'ali',
    text: '',
    speechRate: 50,
    pitchRate: 50,
    volume: 50,
    voice: 'siyue',
    previewRecordUrl: '',
    retryTimes: 0,
    endType: 1,
    keyTimeout: 10

  },
  'ivr-node-voicemail': {
    name: '留言',
    timeout: 60
  },
  'ivr-node-dynamic-route': {
    name: '分支路由',
    routes: [{
      name: '分支1',
      operator: 'and',
      next: '',
      conditions: [{ k: '', op: '', v: '' }],
      conditon: { label: '分支1', to: '', value: '' }
    }]
  },
  'ivr-node-callurl': {
    name: '数据交互',
    method: '0',
    requestTimeOut: 3,
    connectTimeOut: 3,
    responseTimeOut: 3
  }
}

export default defaultData
